//
//  OrderModel.h
//  B2C
//
//  Created by 李小龙 on 2017/8/1.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface OtopsModel : NSObject

@property (nonatomic, copy) NSString *taname;   // 属性名称
@property (nonatomic, copy) NSString *taid;     // 属性id
@property (nonatomic, copy) NSString *ftaid;    // 主属性id
@property (nonatomic, copy) NSString *ftaname;  // 主属性名称

@end

@interface OrdersonModel : NSObject

@property (nonatomic, copy) NSString *osid;         // 订单字表id
@property (nonatomic, copy) NSString *gname;        // 商品名称
@property (nonatomic, copy) NSString *osnumber;     // 数量
@property (nonatomic, copy) NSString *osprice;      // 价格
@property (nonatomic, copy) NSString *osoldprice;   // 原价
@property (nonatomic, copy) NSString *createtime;   // 创建时间
@property (nonatomic, copy) NSString *gextension;   // 推广信息
@property (nonatomic, copy) NSString *gdetails;     // 详细
@property (nonatomic, copy) NSString *gnumber;      // 商品编号
@property (nonatomic, copy) NSString *gimg;         // 商品图片
@property (nonatomic, copy) NSString *gid;          // 商品id
@property (nonatomic, copy) NSArray<OtopsModel *> *otops; // 商品属性

@end

@interface RefundModel : NSObject
@property (nonatomic, copy) NSString *createtime;   // 申请日期
@property (nonatomic, copy) NSString *rcontent;     // 退款原因
@property (nonatomic, copy) NSString *rprice;       // 退款价格
@property (nonatomic, copy) NSString *rstatus;      // 0已提交，1已退款，2退款失败，3退款驳回
@end

@interface OrderModel : NSObject

@property (nonatomic, copy) NSString *omid;             // 订单id
@property (nonatomic, copy) NSString *omprice;          // 订单总金额
@property (nonatomic, copy) NSString *omnumber;         // 订单总数量
@property (nonatomic, copy) NSString *ompaytype;        // 支付方式
@property (nonatomic, copy) NSString *omstatus; // 状态0已提交，1已付款，2已发货，3已签收，4已评价，5已取消，6已删除，7退款申请，8已退款
@property (nonatomic, assign) BOOL isrefund;            // 是否退款 0否1是
@property (nonatomic, copy) NSString *deliveryname;     // 收货人
@property (nonatomic, copy) NSString *deliveryaddress;  // 收货地址
@property (nonatomic, copy) NSString *deliverytel;      // 收货电话
@property (nonatomic, copy) NSString *createtime;       // 创建时间
@property (nonatomic, copy) NSString *omlogisticsnumber;// 物流单号
@property (nonatomic, copy) NSString *lccode;           // 快递公司代码
@property (nonatomic, copy) NSString *lccompany;        // 快递公司名称
@property (nonatomic, copy) NSString *aid;     // 区id
@property (nonatomic, copy) NSString *aname;   // 区
@property (nonatomic, copy) NSString *cid;     // 市id
@property (nonatomic, copy) NSString *cname;   // 市
@property (nonatomic, copy) NSString *pname;   // 省
@property (nonatomic, copy) NSArray<OrdersonModel *> *orderson; // 订单字表
@property (nonatomic, copy) NSArray<RefundModel *> *refund;       // 取消原因

@property (nonatomic, copy) NSString *wechat; // 微信支付的参数
//@property (nonatomic, copy) NSString *url;    // 支付宝的参数

// 发票
@property (nonatomic, copy) NSString *ominvoicetype;    // 发票类型 0不开发票，1普通发票
@property (nonatomic, copy) NSString *ominvoicerise;    // 发票抬头 0个人，1企业
@property (nonatomic, copy) NSString *ominvoicename;    // 发票姓名
@property (nonatomic, copy) NSString *ominvoicenumber;  // 发票税号

@end
